<%@page import="java.util.ArrayList"%>
<%@page import="DAO.DanhMucDAO"%>
<%@page import="POJO.DanhMuc"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	
	<%
		ArrayList<DanhMuc> danhMuc = DanhMucDAO.SelectDanhMucALL();
	
	
	%>
	
<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav"></div>
		<div></div>
		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">Sản phẩm chính</h2>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<th>Tên</th>
								<th>Mô tả</th>
								<th>Hình ảnh</th>
							</tr>
							<%
								for(DanhMuc dm : danhMuc)
								{
							%>
							<tr>
								<td><h3><%= dm.getTenDanhMuc() %></h3></td>
								<td><%= dm.getMoTa() %></td>
								<td><img alt="" src="./css/aothun.png"></td>
							</tr>
							<%
								}
							%>
						</table>


						<!-- Pagging -->
						<div class="pagging"></div>
						<!-- End Pagging -->

					</div>
					<!-- Table -->
					<!-- End Sidebar -->

				</div>
			</div>
			<div class="cl">&nbsp;</div>
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->